<template>
  <el-button @click="f1">消息提示</el-button>
</template>

<script setup>
  import {ElMessage} from "element-plus";

  const f1 = ()=>{
    // ElMessage("消息提示");
    // ElMessage.error("错误提示");
    // ElMessage.success("成功提示");
    ElMessage.warning("警告提示");
  }
</script>

<style scoped>

</style>